//////////////////////////////////////////add vault

else if($action=="addvlt")
{


if(!getplusses(getuid_sid($sid))>25)
    {
        echo "<card id=\"main\" title=\"Methos\">";
      echo "<p align=\"center\">";
      echo "At least you should have 25 Credits to add an item to your vault<br/><br/>";
      echo "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a>";
      echo "</p>";
      echo "</card>";
      echo "</wml>";
      exit();
    }
    addonline(getuid_sid($sid),"Adding a vault item","");

    echo "<card id=\"main\" title=\"Add vault item\">";
    echo "<onevent type=\"onenterforward\">";
  echo "<refresh>
        <setvar name=\"viname\" value=\"\"/>
        <setvar name=\"vilink\" value=\"\"/>
   ";
  echo "</refresh></onevent>";

    echo "<p align=\"center\">";
    echo "<small>The vault is used to store your downloadable links,like images, mp3's, games  etc...<br/>WARNING: if you used it to wapsites links they will got deleted and you'll lose some Credits, if you used it for ranking sites links like 2wap, mradar, you'll be banned</small><br/><br/>";
    echo "Item Name:<input name=\"viname\" maxlength=\"50\"/><br/>";
    echo "Item Url:<input name=\"vilink\" maxlength=\"255\"/><br/>";
    echo "<anchor>Add";
    echo "
         <go href=\"genproc.php?action=addvlt&amp;sid=$sid\" method=\"post\">
         <postfield name=\"viname\" value=\"$(viname)\"/>
         <postfield name=\"vilink\" value=\"$(vilink)\"/>

         </go>
            ";
            echo "</anchor>";

         echo "<br/><br/><a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
    echo "</p>";
    echo "</card>";
}